package cn.smile.config.shiro;

/**
 *
 *
 * @Author: CAS服务器的路径
 * @User：John
 * @Date: 2019/7/16
 * @Time: 12:05
 * @Description: No Description
 */
public final class CasPathConfig {

    /**
     * CAS服务器的地址
     */
    public static final String CAS_SERVER_URL_PREFIX = "https://www.dsbook.xyz/cas";

    /**
     * CAS登录页面地址
     */
    public static final String CAS_LOGIN_URL = CAS_SERVER_URL_PREFIX + "/login";

    /**
     * Cas登出页面地址
     */
    public static final String CAS_LOGOUT_URL = CAS_SERVER_URL_PREFIX + "/logout";

    /**
     * 当前工程对外提供的服务地址
     */
    public static final String SHIRO_SERVER_URL_PREFIX = "https://www.dsbook.xyz/shiro-cas-0.0.1-SNAPSHOT";

    /**
     * Shiro中CAS拦截器的地址
     */
    public static final String CAS_FILTER_URL_PATTERN = "/shiro-cas";

    /**
     * 访问项目中shiro cas拦截器地址，根据拦截器中的配置进行页面的跳转
     */
    public static final String LOGIN_URL = CAS_LOGIN_URL + "?service=" + SHIRO_SERVER_URL_PREFIX + CAS_FILTER_URL_PATTERN;



}
